﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ArtLand.OA.Project.SystemMgr.SysUserGroup"  Codebehind="SysUserGroup.aspx.cs" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Grid1"  />
    <ext:Grid ID="Grid1" Title="用户组权限管理"  ShowBorder="false" runat="server" EnableCheckBoxSelect="false" DataKeyNames="Ugid"
        OnRowDataBound="Grid1_RowDataBound" OnRowCommand="Grid1_RowCommand" EnableRowNumber="True">
         <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnNew" Text="添加用户组" Icon="Add" EnablePostBack="false" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:BoundField Width="120px" DataField="Groupname" DataFormatString="{0}" HeaderText="用户组名" />
            <ext:BoundField Width="120px" DataField="GroupFlag" DataFormatString="{0}" HeaderText="用户组标识" />
            <ext:BoundField Width="60px" DataField="Orderid" HeaderText="排序号" />
            <ext:CheckBoxField Width="60px" RenderAsStaticField="true" DataField="Isuser" HeaderText="是否可用" />
            <ext:WindowField ColumnID="myp" HeaderText="用户组权限设定" Width="120px" WindowID="Window2" Text="设 定" DataTextFormatString="{0}" DataIFrameUrlFields="Ugid"
                DataIFrameUrlFormatString="SysUserSetPer.aspx?uid={0}&mtype=1" DataWindowTitleField="Groupname"
                DataWindowTitleFormatString="对{0}进行权限授权" />
            <ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window1" Text="修 改" DataTextFormatString="{0}" DataIFrameUrlFields="Ugid"
                DataIFrameUrlFormatString="SysUserGroupChange.aspx?id={0}" DataWindowTitleField="Groupname"
                DataWindowTitleFormatString="修改 - {0}" />
            <ext:LinkButtonField ConfirmText="你确定要这么做么？" ConfirmTarget="Top" ColumnID="Ugid"
                Width="50px" CommandName="Del" Text="删 除" />
            
        </Columns>
    </ext:Grid>
    <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="550px" Height="450px">
    </ext:Window>
    <ext:Window ID="Window2" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank" Target="Top" IsModal="True" Width="550px" Height="550px">
    </ext:Window>
    </form>
</body>
</html>

